package com.biom3d.dashboard;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.biom3d.R;

public class FAQActivity extends Activity {

	Button buttonOpenTutorial;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help_faq_layout);

		DisplayMetrics dm = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(dm);
        if(dm.widthPixels < 600) {
        	setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        }

		buttonOpenTutorial = (Button) findViewById(R.id.btn_openTutorial);

		buttonOpenTutorial.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				//Launching FAQ Tutorial Screen
				Intent i = new Intent(getApplicationContext(),
						FAQTutorialActivity.class);
				startActivity(i);
			}
		});
	}
}
